package com.library.mapper;


import com.library.bean.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {

    //根据用户名查询用户是否存在
    User selectUserName(String userName);

    //根据用户账号和密码进行登录
    User selectUser(User user);

    //注册用户
    int insertUser(User user);

    /**
     * 修改头像
     */
    int updateUserHeadImg(@Param("username") String username, @Param("headImg") String headImg);

}
